<?php foreach ($output['orders'] as $order): ?>
<a href="index.php?act=merchant&op=actdetail&ordersn=<?php echo $order['bg_order_sn']; ?>">
    <li>
        <div class="go-title">发起者：<samp><?php echo $order['nickname']; ?></samp><span>时间：<?php echo date('Y/m/d', $order['pay_time']); ?></span></div>
        <div class="commodity">
            <div class="commodity-img">
                <img src="<?php echo $order['bg_thumb']; ?>" />
            </div>
            <div class="commodity-con">
                <div class="commodity-title"><?php echo $order['bg_title']; ?></div>
                <div class="commodity-code">¥<?php echo $order['bg_order_price']; ?></div>
                <div class="commodity-price">
                    <?php if ($output['state'] == 20): ?>
                        <div class="commodity-state">券码：<?php echo substr($order['bg_order_code'],0,10).str_repeat('x',6); ?></div>
                    <?php else: ?>
                        <div class="commodity-state">券码：<?php echo $order['bg_order_code']; ?></div>
                    <?php endif; ?>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </li>
</a>
<?php endforeach; ?>

